package com.engine.core.interceptor;

import com.engine.core.util.Response;
import com.engine.system.User;

import java.util.Map;

public abstract class AbstractBeforeCommand<R extends CommandContext> implements BeforeCommand<Response,R>{
    public AbstractBeforeCommand(User user, Map<String, Object> params){
        this.user=user;
        this.params=params;
    }


    /**
     * user对象
     */
    protected User user;

    /**
     * 参数列表
     */
    protected Map<String, Object> params;

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Map<String, Object> getParams() {
        return params;
    }

    public void setParams(Map<String, Object> params) {
        this.params = params;
    }
}
